package com.xinqi.modules.prepare.prepare.convert;

import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.prepare.prepare.domain.PrepareEntity;
import com.xinqi.modules.prepare.prepare.dto.req.PrepareCreateDTO;
import com.xinqi.modules.prepare.prepare.dto.req.PrepareUpdateDTO;
import com.xinqi.modules.prepare.prepare.dto.rsp.PrepareResultDTO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

/**
 * 备课区转换
 *
 * @author: system
 * @date: 2023/03/19
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class PrepareConvert {
    public abstract PrepareEntity create(PrepareCreateDTO s);

    public abstract PrepareEntity update(PrepareUpdateDTO s, @MappingTarget PrepareEntity t);

    public abstract PrepareEntity update(PrepareUpdateDTO s);

    public abstract PrepareResultDTO convert(PrepareEntity s);
}
